/*
 * @Description: 
 * @Version: 1.668
 * @Autor: 地虎降天龙
 * @Date: 2023-10-18 11:19:56
 * @LastEditors: 地虎降天龙
 * @LastEditTime: 2025-04-02 09:17:11
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'index1',
    component: HomeView
  },
  {
    path: '/index',
    name: 'index2',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: window.__POWERED_BY_QIANKUN__ ? '/vue-son' : '/',
  routes
})
console.log('router', router)

export default router
